package com.zxf.orderservice.feign;

import com.zxf.orderservice.feign.fallback.CreditServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "create-service",fallback = CreditServiceFallBack.class)
public interface CreateService {

    @PostMapping("/credit/add/{userId}/{creditCount}")
    String addCredit(@PathVariable("userId") Long userId,
                     @PathVariable("creditCount") Integer creditCount);
}
